<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<%
	request.setAttribute("title", "在线客服");
%>
<%@ include file="/WEB-INF/views/shared/master/weContentHeader.jsp"%>
<style>

</style>

<%@ include file="/WEB-INF/views/shared/master/weTitle.jsp"%>

<a href="tel:400-0858-118" class="totel" hidden>400-0858-118</a>

<c:forEach var="articalClassify" items="${articalClassifys}">
	<div class="weui-cells" style="margin-top:0px">
		 <div class="weui-cell weui-cell_access " >
	<%-- 		 <div class="weui-cell__hd">
			 	<img style="width:30px;height:30px" src="<c:url value='/images/we/myWealth/icon_bean.png' />">
			 </div> --%>
			 <div class="weui-cell__bd  kind">
			    <span hidden class="typeId">${articalClassify.id}</span>
			 	<p style="color:blue;font-size:22px;"><img alt="" style="width:25px;height:25px;padding-right:10px" 
			 	      src="<c:url value='${tfn:getFileUrl(articalClassify.imgURL) }' />">${articalClassify.name}</p>
			 </div>
			 <div class="weui-cell__ft">
			 </div> 
		 </div>

	 </div>
</c:forEach>



	<div style=";width:100%;height:70px;position:absolute;bottom:10px">
		<a href="javascript:showQQ();" class="weui-btn" style="width:43%;height:50px;background-color:#1fa0db;position:absolute;bottom:10px;left:20px">在线客服</a>
		<a href="javascript:showNum();" class="weui-btn" style="width:43%;height:50px;background-color:#1fa0db;position:absolute;bottom:10px;right:20px">沟通电话</a>
	</div>

<%@ include file="/WEB-INF/views/shared/scripts/jquery.jsp"%>
<%@ include file="/WEB-INF/views/shared/scripts/jqweui.jsp"%>

<script type="text/javascript">

$(function(){
	check();
})
function check(){
	$(".kind").each(function(){
		var time=0;

		$(this).on("click",function(){
			if(time==0){
				/* alert(time); */
				var typeId=$(this).children("span").eq(0).html();
				var url = $.getVirtualPath()+"/wechat/onlineSer/onlineSer/onlineSerDetail?typeId="+typeId;
				var html = $.getTextPost(url);
				$(this).parent().after("<div>"+html+"</div>");
				time=1;
			}else if(time==1){
				/* alert(time); */
				$(this).parent().next().html("");
				time=0;
			}
		})
		
	})
}
function showNum() {
	$.modal({
		  title: "请拨打客服电话：",
		  text: "400-0858-118",
		  buttons: [
		    
		    { text: "取消", className: "default", onClick: function(){} },
		    { text: "呼叫", onClick: function(){ window.location.href=$(".totel").attr("href");} },
		  ]
		});
}
function showQQ(){  
    //调用qq发起聊天   uin=后面是要联系的qq号码  
    location.href="http://wpa.qq.com/msgrd?v=3&uin=1697985808&Site=qq&Menu=yes";  
}  
</script>
<%@ include file="/WEB-INF/views/shared/master/weContentFooter.jsp"%>